<template>
  <div class="swipper-list">
    <div
      class="swipper-item"
      v-for="(item, index) in carouselList"
      :key="index"
    >
      <img class="swipper-item-img" :src="item.img" alt="" />
      <div class="swipper-item-content">
        <img class="swipper-item-img-title" :src="item.titleImg" alt="" />
        <div class="swipper-item-icon"></div>
        <div class="swipper-item-title">
          {{ item.title }}
        </div>
        <p class="swipper-item-disc">{{ item.disc }}</p>
      </div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  carouselList: {
    type: Array,
    default: () => [],
  },
});
</script>

<style lang="scss" scoped>
.swipper-list {
  margin-top: 60px;
  .swipper-item {
    &+.swipper-item{
        margin-top: 20px;
    }
    .swipper-item-img {
      width: 100%;
    //   height: 264px;
      object-fit: cover;
    }
    .swipper-item-content {
      padding: 0 28px;
      box-sizing: border-box;
      .swipper-item-img-title {
        height: 17px;
        margin-top: 12px;
      }
      .swipper-item-icon {
        width: 8px;
        height: 2px;
        background: #1a1a1a;
        margin: 18px 0 12px 0;
      }
      .swipper-item-title {
        font-family: Microsoft YaHei UI, Microsoft YaHei UI;
        font-weight: bold;
        font-size: 16px;
        color: #1a1a1a;
        line-height: 16px;
      }
      .swipper-item-disc {
        margin-top: 16px;
        font-family: Microsoft YaHei UI, Microsoft YaHei UI;
        font-weight: 400;
        font-size: 14px;
        color: #808080;
        line-height: 20px;
      }
    }
  }
}
</style>
